/*
 * $Id: HstStepTime.java,v 1.10 2009/12/16 18:31:22 navdeep_mahajan Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.database.pojo;

import com.ge.healthcare.autosc.common.util.TimeFormatStandard;

/**
 * HstStepTime entity.
 * 
 * @author MyEclipse Persistence Tools
 */
public class HstStepTime extends AbstractHstStepTime implements
		java.io.Serializable {
	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 1439408035449936930L;
	public static final String TABLE_NAME = "com.ge.healthcare.autosc.common.database.pojo.HstStepTime";
	public static final String COL_STEP_TIME_ID = "stepTimeId";
	public static final String COL_STEP_TYPE_ID = "stepTypeId";
	public static final String COL_OBJECT_ID = "objectId";
	public static final Object COL_OBJECT_TYPE = "objectType";
	public static final Object COL_START_TIME = "startTime";

	public static final String TASK_TYPE = "T";
	public static final String REQUEST_TYPE = "R";
	public static final String REQUEST_LIST_TYPE = "RL";

	// Constructors

	/** default constructor */
	public HstStepTime() {
		super();
	}

	public boolean equals(HstStepTime step) {
		if (this.getStepTimeId().equals(step.getStepTimeId())
				&& this.getObjectId().equals(step.getObjectId())
				&& this.getObjectType().equals(step.getObjectType())
				&& this.getCodeId().equals(step.getCodeId())
				&& this.getStepTypeId().equals(step.getStepTypeId())) {
			return true;
		}
		return false;

	}

	public String toString() {
		StringBuffer definiton = new StringBuffer();
		definiton.append("{ID=").append(this.getStepTimeId()).append("},")
				.append("{Object Type=").append(this.getObjectType()).append(
						"},").append("{Object Id=").append(this.getObjectId())
				.append("},").append("{Step Type Id=").append(
						this.getStepTypeId()).append("},").append(
						"{Start Time=").append(
						TimeFormatStandard.getDtInEndUserDisplayFormat(this
								.getStartTime())).append("},").append(
						"{End Time=").append(
						TimeFormatStandard.getDtInEndUserDisplayFormat(this
								.getEndTime())).append("},").append(
						"{Step Logs=").append(this.getHstStepLogs()).append(
						"},").append("{Code Id=").append(this.getCodeId())
				.append("}");
		return definiton.toString();
	}

}
